package org.jeecg.modules.demo.crm.entity;

import java.io.Serializable;
import java.io.UnsupportedEncodingException;
import java.util.Date;
import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableLogic;
import org.jeecg.common.constant.ProvinceCityArea;
import org.jeecg.common.util.SpringContextUtils;
import lombok.Data;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.jeecg.modules.demo.crm.annotation.FileField;
import org.jeecg.modules.demo.crm.annotation.TitleField;
import org.springframework.format.annotation.DateTimeFormat;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.jeecg.common.aspect.annotation.Dict;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * @Description: 总项目报价表
 * @Author: jeecg-boot
 * @Date:   2025-06-19
 * @Version: V1.0
 */
@Data
@TableName("c_project_head_quotes")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="c_project_head_quotes对象", description="总项目报价表")
public class CProjectHeadQuotes implements Serializable {
    private static final long serialVersionUID = 1L;

	/**id*/
	@TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "id")
    private String id;
	/**创建人*/
    @ApiModelProperty(value = "创建人")
    private String createBy;
	/**创建日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建日期")
    private Date createTime;
	/**更新人*/
    @ApiModelProperty(value = "更新人")
    private String updateBy;
	/**更新日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "更新日期")
    private Date updateTime;
    /**标题*/
    @Excel(name = "标题", width = 15)
    @ApiModelProperty(value = "标题")
    private String title;

	/**项目ID*/
	@Excel(name = "项目ID", width = 15, dictTable = "c_project_application", dicText = "project_name", dicCode = "id")
	@Dict(dictTable = "c_project_application", dicText = "project_name", dicCode = "id")
    @ApiModelProperty(value = "项目ID")
    private String projectId;

    /**子项目ID*/
    @Excel(name = "子项目ID", width = 15, dictTable = "c_sub_project", dicText = "sub_project_name", dicCode = "id")
    @Dict(dictTable = "c_sub_project", dicText = "sub_project_name", dicCode = "id")
    @ApiModelProperty(value = "子项目ID")
    private String subProjectId;

	/**报价*/
	@Excel(name = "报价", width = 15)
    @ApiModelProperty(value = "报价")
    private BigDecimal quote;
	/**报价文件*/
	@Excel(name = "报价文件", width = 15)
    @ApiModelProperty(value = "报价文件")
    @FileField // AOP 监听文件数据，存入文件表
    private String quoteFile;
	/**状态*/
	@Excel(name = "状态", width = 15, dicCode = "quotes_status")
	@Dict(dicCode = "quotes_status")
    @ApiModelProperty(value = "状态")
    private String status;
	/**描述*/
	@Excel(name = "描述", width = 15)
    @ApiModelProperty(value = "描述")
    @TitleField // AOP 监听文件数据，存入文件表
    private String depict;


    @Excel(name = "报价时间", width = 20, format = "yyyy-MM-dd")
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @ApiModelProperty(value = "报价时间")
    private Date quotesTime;

    @Excel(name = "合同关联", width = 15, dictTable = "c_contract", dicText = "contract_no", dicCode = "id")
    @Dict(dictTable = "c_contract", dicText = "contract_no", dicCode = "id")
    private String contractId;

    /**收款状态*/
    @Excel(name = "收款状态", width = 15, dicCode = "quotes_status")
    @Dict(dicCode = "payment_status")
    @ApiModelProperty(value = "收款状态")
    private String paymentStatus;





}
